package com.yellowpage.omc.canal.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * Canal entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "OMC_CANAL")
public class Canal implements java.io.Serializable {

	// Fields

	private Long canalId;
	private String code;
	private String name;
	private String abbr;
	private String promotionWay;
	private String contactName;
	private String contactTel;
	private String email;
	private String address;
	private String type;
	private String status;
	private Integer createUser;
	private Date createTime;
	private Integer lastUpdateUser;
	private Date lastUpdateTime;
	private String note;

	// Constructors

	/** default constructor */
	public Canal() {
	}

	/** minimal constructor */
	public Canal(String contactName) {
		this.contactName = contactName;
	}

	/** full constructor */
	public Canal(String code, String name, String abbr, String promotionWay,
			String contactName, String contactTel, String email,
			String address, String type, String status, Integer createUser,
			Date createTime, Integer lastUpdateUser, Date lastUpdateTime,
			String note) {
		this.code = code;
		this.name = name;
		this.abbr = abbr;
		this.promotionWay = promotionWay;
		this.contactName = contactName;
		this.contactTel = contactTel;
		this.email = email;
		this.address = address;
		this.type = type;
		this.status = status;
		this.createUser = createUser;
		this.createTime = createTime;
		this.lastUpdateUser = lastUpdateUser;
		this.lastUpdateTime = lastUpdateTime;
		this.note = note;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "CANAL_ID", unique = true, nullable = false)
	public Long getCanalId() {
		return this.canalId;
	}

	public void setCanalId(Long canalId) {
		this.canalId = canalId;
	}

	@Column(name = "CODE", length = 64)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "NAME")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "ABBR")
	public String getAbbr() {
		return this.abbr;
	}

	public void setAbbr(String abbr) {
		this.abbr = abbr;
	}

	@Column(name = "PROMOTION_WAY")
	public String getPromotionWay() {
		return this.promotionWay;
	}

	public void setPromotionWay(String promotionWay) {
		this.promotionWay = promotionWay;
	}

	@Column(name = "CONTACT_NAME", nullable = false)
	public String getContactName() {
		return this.contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	@Column(name = "CONTACT_TEL", length = 32)
	public String getContactTel() {
		return this.contactTel;
	}

	public void setContactTel(String contactTel) {
		this.contactTel = contactTel;
	}

	@Column(name = "EMAIL", length = 64)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "ADDRESS")
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "TYPE", length = 20)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "STATUS", length = 20)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "CREATE_USER")
	public Integer getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_TIME", length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "LAST_UPDATE_USER")
	public Integer getLastUpdateUser() {
		return this.lastUpdateUser;
	}

	public void setLastUpdateUser(Integer lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "LAST_UPDATE_TIME", length = 0)
	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	@Column(name = "NOTE", length = 128)
	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

}